package aws

import (
	"os"
)

type AccessKeys struct {
	AccessKeyId, SecretAccessKey string
}

func GetEnvKeys() (keys AccessKeys, err os.Error) {
	keys.AccessKeyId = os.Getenv("AWS_ACCESS_KEY_ID")
	keys.SecretAccessKey = os.Getenv("AWS_SECRET_ACCESS_KEY")

	if keys.AccessKeyId == "" {
		err = os.NewError("Environment variable AWS_ACCESS_KEY_ID not set")
	} else if keys.SecretAccessKey == "" {
		err = os.NewError("Environment variable AWS_SECRET_ACCESS_KEY not set")
	}

	return
}
